import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element-ui'

Vue.mixin({
  computed: {
    uploadURL() {
      return 'api/public/upload'
    },
    getAuth() {
      return {
        Authorization: 'Bearer ' + localStorage.token
      }
    }
  }
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
